home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / ATCP_sdk_40_gc.lha / AmiTCP-4.0-gcc / src / examples / Smakefile < prev   
Makefile  |  1994-09-30  |  909b  |  53 lines

  1. #
  2. #       $Id: Smakefile,v 4.1 1994/09/30 00:09:44 jraja Exp $
  3. #
  4. #       Smakefile for AmiTCP/IP examples
  5. #
  6. #       Copyright © 1994 AmiTCP/IP Group, 
  7. #                        Network Solutions Development Inc.
  8. #                        All rights reserved.
  9. #
  10.  
  11. DEST = AmiTCP:
  12.  
  13. #
  14. # These will be made
  15. #
  16. CPROGS= serv/in.example
  17.     
  18. PROGS= $(CPROGS)
  19.  
  20. SRC_SERV=     serv/Smake.def serv/in.example.c
  21.  
  22. SRCS= $(SRC_SERV)
  23.  
  24. MAKELINK = makelink
  25. MKDIR = makedir
  26. MAKE = smake
  27. RM   = delete
  28. CP = copy dates
  29. AUTODOC= autodoc -C -I -c -t8
  30.  
  31. all: Smake-in-dir $(PROGS)
  32.  
  33. Smake-in-dir: Smakefile
  34.     copy to $@ <from < 
  35. .key WHAT/A,DEST/K,INSTALL/S,TARGET/K/F
  36. .bra {
  37. .ket }
  38. echo SMaking {WHAT}
  39. cd {WHAT}
  40. smake -k -f netinclude:Smake.template DEST={DEST} {TARGET}  {INSTALL}
  41. cd /
  42. <
  43.     protect $@ +es
  44.  
  45. serv/in.example: $(SRC_SERV) 
  46.     Smake-in-dir serv
  47.  
  48. clean:
  49.     Smake-in-dir serv TARGET CLEAN
  50.  
  51. cleaner: clean
  52.     -$(RM) $(CPROGS) Smake-in-dir
  53.